package com.future.springcloud.controller;

import com.future.springcloud.entities.util.CommonResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @author weiruibai.vendor
 * Date: 2022/3/7 12:33
 */
@RestController
@RequestMapping(value = "/user")
public class UserController {

    @Value("${server.port}")
    private String port;

    @GetMapping(value = "/test")
    public CommonResult<String> testV2() {
        System.out.println("v1,port:" + port);
        return new CommonResult<>(10, "v1");
    }

}
